import Vue from 'vue'
import VueI18n from 'vue-i18n'

Vue.use(VueI18n)

import elemZH from 'element-ui/src/locale/lang/zh-CN'
import elemEn from 'element-ui/src/locale/lang/en'

import muneZH from '@/I18n/zh'
import muneEN from '@/I18n/en'

export default new VueI18n({
  locale: 'zh',
  messages: {
    zh: {
      morning: '早上好！打工仔',
      ...elemZH,
      ...muneZH
    },
    en: {
      morning: 'Good morning, worker',
      ...elemEn,
      ...muneEN
    }
  }
})
